<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('单位年初余额查询列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>年度：</label>
                                <input type="text" name="nd"/>
                            </li>
                            <li>
                                <label>单位编码：</label>
                                <input type="text" name="dwbm"/>
                            </li>
                            <li>
                                <label>科目代码：</label>
                                <input type="text" name="kmdm"/>
                            </li>
                            
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:dwye:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript"> 
        var prefix = ctx + "system/dwye";

        $(function() {
            var options = {
                url: prefix + "/list", 
                exportUrl: prefix + "/export",
                modalName: "单位年初余额查询",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'nd',
                    title: '年度'
                },
                {
                    field: 'dwbm',
                    title: '单位编码'
                }, {
                    field: 'dwmc',
                    title: '单位名称'
                },
                {
                    field: 'yskm',
                    title: '预算科目'
                },
                {
                    field: 'jjyskm',
                    title: '经济科目'
                },
                {
                    field: 'kmdm',
                    title: '科目代码'
                },{
                    field: 'kmmc',
                    title: '会计科目'
                },
                {
                    field: 'qcye',
                    title: '期初余额'
                },
                {
                    field: 'bmbm',
                    title: '部门编码'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>